<template>
	<view>
		<nav-box title="二维码名片"></nav-box>
		<view class="content">
			<view class="qr-box">
				<view class="top-box">
					<image :src="userInfo.headiImgurl" mode=""></image>
					<view class="top-info">
						<view class="name">{{ userInfo.name }}</view>
						<text>{{userInfo.userOrgs[0].companyName}}</text>
						<text>{{userInfo.userOrgs[0].orgName}}</text>
					</view>
				</view>
				<image src="https://img1.baidu.com/it/u=2877499757,3239316825&fm=224&fmt=auto&gp=0.jpg" mode=""></image>
			</view>
		</view>
	</view>
</template>

<script>
export default {
	data() {
		return {
			userInfo: {
				avaUrl: '../../static/logo.png',
				name: '张三',
				company: '阿里巴巴与四十大盗有限公司',
				department: '开发部'
			},
			qrCode: ''
		}
	},
	onLoad() {
		this.userInfo = uni.getStorageSync('userInfo')
	},
	methods: {

	}
}
</script>

<style lang="scss" scoped>
page {
	background-color: #f7f7f9;
}
.content {
	padding: 100upx 24upx;
	.qr-box {
		background: #ffffff;
		padding: 40upx;
		border-radius: 24upx;
		image {
			width: 622upx;
			height: 622upx;
		}
		.top-box {
			display: flex;
			align-items: center;
			margin-bottom: 40upx;
			image {
				width: 104upx;
				height: 104upx;
				border-radius: 50%;
				margin-right: 24upx;
			}
			.top-info {
				.name {
					font-size: 40upx;
					color: #2b2b2b;
				}
				text {
					font-size: 24upx;
					color: #828282;
					display: inline-block;
					&:not(:last-child) {
						margin-right: 16upx;
					}
				}
			}
		}
	}
}
</style>
